package com.touni.designpattern.singletonpattern.lazy;

/**
 * @ClassName : EasySingleton
 * @Description : 懒汉式 线程不安全
 * @Author : lwq
 * @Date: 2020-10-19 15:13
 */
public class EasySingleton {

    private EasySingleton singleton;

    private EasySingleton(){}

    public EasySingleton getInstance(){
        if (singleton == null){
            singleton = new EasySingleton();
        }
        return singleton;
    }


}
